//
//  COMessageModel.swift
//  CocoProject
//
//  Created by Vill on 2023/11/10.
//

import UIKit

struct CORongUserToken: HandyJSON {
    var user:CORongImToken = CORongImToken()
}

struct CORongImToken: HandyJSON {
    var code:Int = 0
    var token:String = ""
    var userId:String = ""
}

struct COChatUsersModel: HandyJSON {
    var users:[DGChatUserInfoModel] = [DGChatUserInfoModel]()
}

struct COChatStreamerInfoModel: HandyJSON {
    var steamer:DGChatUserInfoModel = DGChatUserInfoModel()
}

struct DGChatUserInfoModel: HandyJSON {
    var id          : String = ""     //id
    var name        : String = ""
    var birthday    : String?
    var age         : Int = 0      //年龄
    var gender      : Int?       //性别0男1女
    var price       : Int = 0    //价格
    var status      : Int = 3    //是否在线，1在线、2繁忙 3离线
    var country     : String?    //国家
    var profilePhoto: String?    //头像
    var praise      : Int?
    var top         : Bool?
    var summary     : String?      //简介
    var isFollow    : Int?         //是否关注、大于0已关注、为空和小于0没有关注
    var isPraise    : Bool = false //是否点赞
    var following   : Int = 0      //关注数
    var fans        : Int = 0     //粉丝数
    var useLanguage : String?      //语言

    var video       : String = ""  //视频路径
    var tagsResponses:[COTagsModel] = [COTagsModel]()//标签
    var tagArrs     :[String] = [String]()//标签
    var resCount    : String = ""    //好评率
    // 视频相关
    // 融云useridID
    var rongUserId : String = ""
    //主播id
    var streamerId : String = ""
    //主播昵称
    var streamerName : String = ""
}

struct COTagsModel: HandyJSON {
    var id          : String = ""  //id
    var tagsName    : String = ""  //标签名称
    var tagsId      : String = ""
    var hits        : Int = 0  //标签点赞数
}


struct COTranslateResponseModel: HandyJSON {
    var response:COTranslateModel = COTranslateModel()
}

struct COTranslateModel: HandyJSON {
    var translatedText  : String = ""
    var code      : Int?
}

struct COGiftSearchModel: HandyJSON {
    var gift:[COGiftModel] = [COGiftModel]()
}

struct COGiftModel: HandyJSON {
    var id:String = ""
    var name:String = ""          //礼物名
    var iconUrl:String = ""       //礼物小图片
    var fileUrl:String = ""       //礼物特效
    var version:String = ""
    var coins:Int = 0             //金币
}

struct COConsumeChatResponseModel: HandyJSON {
    var response:COConsumeChatModel = COConsumeChatModel()
}

struct COConsumeChatModel: HandyJSON {
    var rongUserId  : String = "" //融云userID
    var chat      : Int?      //已发送条数
}

struct COConsumeGiftResponseModel: HandyJSON {
    var response:COConsumeGiftModel = COConsumeGiftModel()
}

struct COConsumeGiftModel: HandyJSON {
    var coins      : Int?      //剩余金币
}

struct COMarketQaDatasModel: HandyJSON {
    var total:Int = 0
    var pageData:[MarketQaModel] = [MarketQaModel]()
}

struct MarketQaModel: HandyJSON {
    var id:Int = 0
    var problem:String = ""
    var answer:String = ""
    var phoneSystem:Int = 0
    var appPackage:String = ""
    var createTime:[String] = [String]()
}


